# 枚举映射方法
from enum import Enum
from logic.Functions import *

def GetFun(enum):
    if enum in funcDic:
        fun = funcDic[enum]
        return fun

class NetworkCMD(Enum):  
    TEST = 0
    CS_All_FILEPATHS_DATA = 1
    CS_GET_All_VER_INFO = 2
    CS_GET_AB_INFO = 3
    CS_GET_FTP_INFO = 4
    

funcDic = {
    NetworkCMD.CS_All_FILEPATHS_DATA : GetAllFilePath,
    NetworkCMD.CS_GET_All_VER_INFO : GetAllVerinfo,
    NetworkCMD.CS_GET_AB_INFO : GetABInfo,
    NetworkCMD.CS_GET_FTP_INFO : GetFTPInfo
}

